<template>

  <el-menu-item :index="index+''">
    <img class="img" src="">
    <div class="text" slot="title">{{menu.text}}</div>
  </el-menu-item>
</template>

<script type="text/ecmascript-6">
export default {
//  name: "LeftMenuItem",
  props: {
    menu: Object,
    index: [String, Number]
  },
  data () {
    return {}
  }
}
</script>

<style lang="">
  .img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #fff;
    margin-bottom: 5px;
  }

  .el-menu-item {
    height: auto;
    line-height: 15px;
    padding: 20px;
  }

  .el-menu-item.is-active {
    background-color: #6AA7E3;
    color: #fff;
  }

  .text {
    line-height: 15px;
    height: 15px;
    margin-top: 5px;
    font-size: 14px;
    font-weight: bold;
  }
</style>
